﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ApaterPattern.Adapter
{
    class TurkeyAdapter : Interface.IDuck
    {
        Interface.ITurkey turkey;

        public TurkeyAdapter(Interface.ITurkey _turkey)
        {
            turkey = _turkey;
        }
        public void Fly()
        {
            for(int i =0;i <5; i++)
            {
                turkey.Fly();
            }
        }

        public void Quack()
        {
            turkey.Gobble();
        }
    }
}
